package com.qfedu.service.impl;

import com.qfedu.dao.GoodDao;
import com.qfedu.dao.impl.GoodDaoImpl;
import com.qfedu.entity.Good;
import com.qfedu.service.GoodService;

import java.sql.SQLException;
import java.util.List;

public class GoodServiceImpl implements GoodService {
    private GoodDao dao = new GoodDaoImpl();
    @Override
    public List<Good> findAll() throws SQLException {
        List<Good> all = dao.findAll();
        return all;
    }
}
